package student;

import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

import degree.Degree;

/**
 * Home interface for the bean StudentBean
 * 
 * 	@author Mathieu MARET, Mamadou TOURE
 * 
 *  The StudentHome interface defines all the methods that a client can invoke to find, create or destroy
 *  an StudentBean.
 *  
 *  Note : 	-It extends the EJBLocalHome interface.
 *  		-We use @SuppressWarnings("unchecked") to avoid the warning about the collection element type.
 */
@SuppressWarnings("unchecked")
public interface StudentHome extends EJBLocalHome 
{
	
	public Student create( String firstName, String name,String login, String passwd, String email, Degree degree) throws CreateException;

	public Collection findAllStudents() throws FinderException;
	public Student findByPrimaryKey(int userId) throws FinderException;
	
}
